<template>
  <div class="app-container documentation-container">
    <a class="document-btn" target="_blank" href="https://www.yuque.com/icanci">我的博客</a>

    <dropdown-menu class="document-btn" :items="articleList" title="系列文章"/>
  </div>
</template>

<script>
import DropdownMenu from '@/components/Share/DropdownMenu'

export default {
  name: 'Documentation',
  components: {DropdownMenu},
  data() {
    return {
      articleList: [
        {title: '设计模式', href: 'https://www.yuque.com/icanci/ftrcq4'},
        {title: 'Java集合框架源码', href: 'https://www.yuque.com/icanci/zev0fa'},
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.documentation-container {
  margin: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;

  .document-btn {
    flex-shrink: 0;
    display: block;
    cursor: pointer;
    background: black;
    color: white;
    height: 60px;
    padding: 0 16px;
    margin: 16px;
    line-height: 60px;
    font-size: 20px;
    text-align: center;
  }
}
</style>
